import React, { Component } from 'react'
import theme from '../css/about.module.css';
import { Link } from 'react-router-dom';
export default class About extends Component<any,any> {
    constructor(props:any){
        super(props);
        this.state={
            id:5
        }
    }
  render() {
      
    return (
      <div>
          <div className={theme.txt}>关于</div>
          <button onClick={()=>{
          this.props.history.push("/text/5")
          
        }}>去测试页面带参数</button>

        <button onClick={()=>{
            this.props.history.push({
              pathname:"text2",
              state:{
                id:999
              }
            })
        }}>隐式的参数的传递</button>
          
    </div>
    )
  }
}
